Skip to content

fix: allow paste from context menu#1910

Open
VladaHarbour wants to merge 4 commits intomainfrom
sd-1302_paste-menu-item
Open

fix: allow paste from context menu#1910
VladaHarbour wants to merge 4 commits intomainfrom
sd-1302_paste-menu-item

Conversation

@VladaHarbour
Copy link
Contributor

Hi @harbournick!
document.execCommand("paste") was deprecated due to security issues. The recommended way to do copy/paste is the one with Clipboard API

@VladaHarbour VladaHarbour self-assigned this Feb 2, 2026
@linear
Copy link

linear bot commented Feb 2, 2026

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ee04e063c6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 SD Review Bot

Non-diff Issues

🤖 [Review Bot: Major] Missing test coverage for readClipboardRaw() in clipboardUtils.test.js. The new function has multiple fallback paths (read → readText → empty) and should have tests covering:

  1. Successful HTML + text read
  2. read() fails, falls back to readText()
  3. read() unavailable, uses readText() directly
  4. All clipboard access denied (returns empty strings)

See inline comments for line-specific items.

@VladaHarbour VladaHarbour force-pushed the sd-1302_paste-menu-item branch from a0e6949 to 94ecfc6 Compare February 4, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants